<!DOCTYPE html>
<html lang="zh-cn">
<head>
	<meta charset="utf-8" />
	<title>浮动</title>
	<style>
		body {
			margin: 0px;
		}


		.d1, .d2 {
            height: 100px;
		}

        .d1{
            background-color: burlywood;
            width: 100px;
            float: left;    /**/
        }

        .d2{
            background-color: red;
            width: 120px;
        }

	</style>
</head>

<body>

    <div class="d1"></div>
    <div class="d2"></div>

</body>

</html>
